/**
ysbEePatch.mg
*/


class YSBBusinessCardViewController:YSBViewController {


- (void)shareActionWithImage:(UIImage *)img {
    
    YSBCommonTool.getLastImageCallImageBack:(^(PHAsset *asset) {
        PHAsset *lastAsset = YSBCommonTool.latestAsset();
        YSBShareItem *shareItem = YSBShareItem.alloc().init();
        shareItem.shareType = 2;
        shareItem.shareTitle = @"我的名片";
        shareItem.shareDesc = @"快扫我的二维码注册下载，我在余时保等你一起来赚钱，一起赢得标签~~";
        shareItem.shareImage = @"";
        
        CGSize tSize = CGSizeMake(self.tableView.frame.size.width, self.tableView.frame.size.height);
        PHCachingImageManager.defaultManager.requestImageForAsset:targetSize:contentMode:options:resultHandler:(asset,tSize,1,nil,^(UIImage *result) {
            if (result != nil) {
                shareItem.shareSingleImage = result;
            }
        });
        
        shareItem.asset = lastAsset;
        YSBShareHelper.defaultShareHelper.shareContentWithShareItem:(shareItem);
    });
    

    self.tableViewFooterView.hidden = YES;
}



}



class LHChatVC:YSBViewController {


- (NSIndexPath *)insertNewMessageOrTime:(id)NewMessage {

    NSIndexPath *index = NSIndexPath.indexPathForRow:inSection:(self.dataSource.count,0);
    self.dataSource.addObject:(NewMessage);
        
    self.tableView.reloadData();

    return index;
}


}



class YSBChildOrderDetailComplaintViewController : YSBViewController {


- (void)viewDidAppear:(BOOL)animated {
    super.viewDidAppear:(animated);
    self.orderMoneyTitleTextField.textField.keyboardType = UIKeyboardTypeDecimalPad;
    
}


}
